<template>  
  <div>  
    <h2>你好,这里是温州理工滨海校区</h2>  
    <p>学生查找功能</p>  
    <input type="text" v-model="studentId" placeholder="输入学号查找学生">  
    <button @click="findStudent">查找学生</button>  
    <p v-if="studentInfo">{{ studentInfo }}</p>  
  </div>  
</template>  
  
<script>  
export default {  
  data() {  
    return {  
      studentId: '',  
      studentInfo: '未输入学号'  
    };  
  },  
  methods: {  
    findStudent() {  
      if (this.studentId === '12345') {  
        this.studentInfo = '学生信息：张三，学号：12345';  
      } else {  
        this.studentInfo = '未找到该学生';  
      }  
    }  
  }  
};  
</script>
